//
//  NSStringEX.h
//  QZone
//
//  Created by sugar chen on 10-5-3.
//  Copyright 2010 Tencent Technology (Shenzhen) Company Limited. All rights reserved.
//

#import <UIKit/UIKit.h>

/**********沙盒目录目录相关的************/

@interface NSString (NSStringForPath)

+ (NSString *) HomePath;
+ (NSString *) TempPath;
+ (NSString *) DocPath;
+ (NSString *) CachePath;
+ (NSString *) AppPath;
+ (BOOL)RemovePath:(NSString *)path;
+ (NSString *)Uuid;
+ (NSString *)FullImagePath;
+ (NSString *)ThumbImagePath;
+ (NSString *)SelfImagePath;
+ (NSString *)pathInCacheDirectory:(NSString *)componentName;
+ (BOOL)createDirInCache:(NSString *)dirName;

@end

/**********字符处理相关**************/
@interface NSString (CharacterUtil)

/**
 *	@brief	检验汉字字符
 *
 *	@param 	charater 	字符
 *
 *	@return	布尔变量
 */
+ (BOOL)validateChineseCharater:(unichar)charater;

@end

/**********文件目录相关的************/
@interface NSString (FileKit)

+ (NSString *)fileDocumentPath:(NSString *)fileName;

+ (BOOL)storeFile:(NSString *)fileName contents:(NSData *)data atPath:(NSString *)filePath;

+ (NSString *)generateUUID;

@end

@interface NSString (MessageImageKit)

+ (NSString *)createThumbnailCachePath;

+ (NSString *)createOriginalPhotoCachePath;

@end

@interface NSString (PingYin)
- (NSString *) pinyinString;
@end

@interface NSString (sqlite)
- (NSString *) sqliteString;
- (NSString *) sqliteLikeString;
@end

@interface NSString (spaceString)
+ (NSString *) spaceStringForWidth:(float)width;
+ (NSString *) spacesForFont:(UIFont *)f Width:(CGFloat)width;
- (NSDictionary *) urlResultToDictionary;
- (NSString *)stringByLineLimit:(int)line font:(UIFont *)font width:(CGFloat)width wrapString:(NSString *)wrapString;
@end

@interface NSString(numberStr)

+ (NSString*)GetNumberString:(int)number ;

@end